from com.atzl.ui.LogInMonBillUI import Ui_Form
import sys
import ctypes
import os

from PyQt5 import QtCore
from PyQt5.QtWidgets import QApplication
from PyQt5.QtCore import QCoreApplication

from com.atzl.interaction.LogInMonBill import LoginWindow

ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("myappid")
# 解决了高DPI和规模超过100%的问题
os.environ["QT_FONT_DPI"] = "91"

if __name__ == "__main__":
    QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
    app = QApplication(sys.argv)
    window = LoginWindow()
    ui = Ui_Form()
    window.show()
    sys.exit(app.exec_())